package com.artPreter.config;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import com.artPreter.pojo.*;
import com.artPreter.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.io.IOException;
import java.time.DayOfWeek;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.HashMap;
import java.util.List;



@Component
@EnableScheduling
public class MyScheduledTask {

    Boolean run = true;

    /**
     * 获取实时数据
     */
    @Scheduled(fixedRate = 30000)
    public void getDeviceData(){


        System.out.println("定时计划");
    }







}
